//
//  UILabel+Extension.swift
//  Weibo_SwiftDemo
//
//  Created by gjh on 2020/12/27.
//

import UIKit

extension UILabel {
    convenience init(title: String, fontSize: CGFloat, color: UIColor) {
        self.init()
        
        text = title
        font = UIFont.systemFont(ofSize: fontSize)
        numberOfLines = 2
        textAlignment = .center
        textColor = color
    }
}
